package com.sealer.pattern.structural.flyweight;

/**
 * Created by sealer on 17/04/04.
 */
public class Order {
    private final int tableNum;
    private final CoffeeFlavor flavor;

    public Order(CoffeeFlavor flavor, int tableNum) {
        this.tableNum = tableNum;
        this.flavor = flavor;
    }

    public void serve() {
        System.out.println("Serving " + flavor + " to table " + tableNum);
    }
}
